import request from '../utils/http';
const service  = import.meta.env.VITE_APP_BASE_URL

// 获取请购部门列表
export function getPurchaseDeptList(params: any) {
    return request({
        url: service + '/purchaseBi/getPurchaseDeptList',
        method: 'get',
        params
    })
}
// 请购单统计
export function getPurchaseTj(params: any) {
    return request({
        url: service + '/purchaseBi/getPurchaseTj',
        method: 'get',
        params
    })
}
// 采购统计
export function getCaiGouTj(params: any) {
    return request({
        url: service + '/purchaseBi/getCaiGouTj',
        method: 'get',
        params
    })
}
// 口总金额+采购到货及时率
export function getTotalAmount(params: any) {
    return request({
        url: service + '/purchaseBi/getTotalAmount',
        method: 'get',
        params
    })
}
// 获取各个部门统计
export function getDeptTjList(params: any) {
    return request({
        url: service + '/purchaseBi/getDeptTjList',
        method: 'get',
        params
    })
}
// 采购种类与数量统计
export function getCaiGouTypeCountTjList(params: any) {
    return request({
        url: service + '/purchaseBi/getCaiGouTypeCountTjList',
        method: 'get',
        params
    })
}
// 供应商采购次数
export function getVendorCiShu(params: any) {
    return request({
        url: service + '/purchaseBi/getVendorCiShu',
        method: 'get',
        params
    })
}
// 获取供应商采购种类与数量
export function getVendorTypeCountTjList(params: any) {
    return request({
        url: service + '/purchaseBi/getVendorTypeCountTjList',
        method: 'get',
        params
    })
}
// 获取延期清单列表
export function getDelayList(params: any) {
    return request({
        url: service + '/purchaseBi/getDelayList',
        method: 'get',
        params
    })
}

